import React from 'react';
import {Layout, Menu} from "antd";
import './ViewTemplate.scss'
const {Sider, Content}=Layout;
export default (props)=>{
	let {pathname}=props;
	console.log('temp', pathname);
	return (
		<Layout>
			<Sider width={200}>
				<Menu mode="inline" defaultSelectedKeys={[pathname]} className="menu_box">
					{props.children[0]}
				</Menu>
			</Sider>
			<Layout style={{ padding: '0 24px 24px' }}>
				<Content>
					{props.children[1]}
				</Content>
			</Layout>
		</Layout>
	);
}
